package postpic.server.user;

import postpic.domain.User;

public class UserModel {
	
	private UserDao userDao;
	
	public UserModel() {
		userDao = new UserDao();
	}
	
	public User validateLogin(final String username, final String password) {
		return userDao.validateLogin(username, password);
	}
	
	public User registerUser(final String email, final String firstName, final String lastName, final String password) {
		return userDao.registerUser(email, firstName, lastName, password);
	}
	
	public User getUser(final Integer userId) {
		return userDao.getUser(userId);
	}
	
	public boolean addFriend(final String email, final User user) {
		return userDao.addFriend(email, user);
	}

}
